import { IpcRendererEvent } from 'electron'

export const addIpcListener = (
  channel: string,
  listener: (evt: IpcRendererEvent, ...args: any[]) => void
) => {
  window.electron.ipcRenderer.on(channel, listener)
}
